Skip to content

docs(WO17): step 4b landed — the TS parser is generated from the .parg grammar - #434

Merged
ronaldtse merged 1 commit into
mainfrom
wo17-4b-landed
Nov 11, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
wo17-4b-landed

Conversation

@ronaldtse

@ronaldtse ronaldtse commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The single-sourcing milestone landed: interscript-ts #128 merged — the ISC parser is generated from the canonical ruby .parg grammar (vendored verbatim, sha256-pinned with a no-drift test; parg-reader + table-driven PEG interpreter with parsanol's exact flatten semantics + an actions table mirroring the hand parser). The public parseIsc API is unchanged.

Evidence: capture trees vs ruby 434/434 byte-identical; documents vs the replaced hand parser 434/434 identical; the cross-grammar harness scores the generated parser at exactly the hand parser's 411/434 (same 23 files, same divergence kinds — the gap is py-normalizer-by-design); ts suite 364/0 with the conformance matrix green in CI.

Owner-flagged: three dormant grammar extensions (one a newly-discovered cross-runtime when-position divergence), the \UXXXX escape mis-handling shared by hand-ts and py (six corpus maps), interpreter performance ~18 s/corpus. WO17 steps 1-4 complete; the py generated-parser switch is the follow-up; owner-held set unchanged.

(Replaces the earlier body, whose backticked segments were eaten by shell command substitution — the lesson already in the global rules, re-learned the hard way.)

…g (434/434 vs hand parser); owner-flagged grammar findings recorded

interscript-ts PR #128 merged: the ISC parser is generated from the
canonical ruby .parg grammar (vendored verbatim, sha256-pinned with a
no-drift test; parg-reader + table-driven PEG interpreter with
parsanol's exact flatten semantics + an actions table). Capture trees
vs ruby 434/434 byte-identical; documents vs the replaced hand parser
434/434 identical; the cross-grammar harness scores the generated
parser at exactly the hand parser's 411/434 (same files, same kinds).
Owner-flagged: three dormant grammar extensions (one newly-discovered
cross-runtime when-position divergence), the U-escape mis-handling
shared by hand-ts and py (six corpus maps). WO17 steps 1-4 complete;
py generated-parser switch is the follow-up.
@ronaldtse
ronaldtse merged commit ba62840 into main Nov 11, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant